﻿namespace Vdc.Interface
{
    using System;
    using System.ComponentModel;
    using System.Text;

    public class VdcDropDownListCssSettings : VdcPersistentObject
    {
        public virtual string SerializeToJSON()
        {
            StringBuilder builder = new StringBuilder();
            builder.Append("{");
            builder.Append("'N': '" + this.TopContainer_Normal + "',");
            builder.Append("'O': '" + this.TopContainer_Over + "',");
            builder.Append("'AC': '" + this.TopContainer_ActiveClosed + "',");
            builder.Append("'AO': '" + this.TopContainer_ActiveOpen + "',");
            builder.Append("'D': '" + this.TopContainer_Disabled + "'");
            builder.Append("}");
            return builder.ToString();
        }

        [Description("CSS Class for the Input Element"), Bindable(true), Category("CSS Settings"), DefaultValue("ob_iDdlIE")]
        public virtual string InputElement
        {
            get
            {
                object obj2 = this.ViewState["InputElement"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlIE";
            }
            set
            {
                this.ViewState["InputElement"] = value;
            }
        }

        [DefaultValue("ob_iDdlIC"), Bindable(true), Description("CSS Class for the Items Container"), Category("CSS Settings")]
        public virtual string ItemsContainer
        {
            get
            {
                object obj2 = this.ViewState["ItemsContainer"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlIC";
            }
            set
            {
                this.ViewState["ItemsContainer"] = value;
            }
        }

        [Bindable(true), Category("CSS Settings"), Description("CSS Class for the top container - ActiveClosed state"), DefaultValue("ob_iDdlITCAC")]
        public virtual string TopContainer_ActiveClosed
        {
            get
            {
                object obj2 = this.ViewState["TopContainer_ActiveClosed"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlITCAC";
            }
            set
            {
                this.ViewState["TopContainer_ActiveClosed"] = value;
            }
        }

        [DefaultValue("ob_iDdlITCAO"), Description("CSS Class for the top container - ActiveOpen state"), Category("CSS Settings"), Bindable(true)]
        public virtual string TopContainer_ActiveOpen
        {
            get
            {
                object obj2 = this.ViewState["TopContainer_ActiveOpen"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlITCAO";
            }
            set
            {
                this.ViewState["TopContainer_ActiveOpen"] = value;
            }
        }

        [Category("CSS Settings"), Description("CSS Class for the Content of the Top Container"), Bindable(true), DefaultValue("ob_iDdlTC")]
        public virtual string TopContainer_Content
        {
            get
            {
                object obj2 = this.ViewState["TopContainer_Content"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlTC";
            }
            set
            {
                this.ViewState["TopContainer_Content"] = value;
            }
        }

        [Description("CSS Class for the top container - Disabled state"), Bindable(true), Category("CSS Settings"), DefaultValue("ob_iDdlITCD")]
        public virtual string TopContainer_Disabled
        {
            get
            {
                object obj2 = this.ViewState["TopContainer_Disabled"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlITCD";
            }
            set
            {
                this.ViewState["TopContainer_Disabled"] = value;
            }
        }

        [Bindable(true), Category("CSS Settings"), DefaultValue("ob_iDdlTL"), Description("CSS Class for the Left Side of the Top Container")]
        public virtual string TopContainer_LeftSide
        {
            get
            {
                object obj2 = this.ViewState["TopContainer_LeftSide"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlTL";
            }
            set
            {
                this.ViewState["TopContainer_LeftSide"] = value;
            }
        }

        [DefaultValue("ob_iDdlITCN"), Bindable(true), Description("CSS Class for the top container - Normal state"), Category("CSS Settings")]
        public virtual string TopContainer_Normal
        {
            get
            {
                object obj2 = this.ViewState["TopContainer_Normal"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlITCN";
            }
            set
            {
                this.ViewState["TopContainer_Normal"] = value;
            }
        }

        [Bindable(true), DefaultValue("ob_iDdlITCO"), Description("CSS Class for the top container - Over state"), Category("CSS Settings")]
        public virtual string TopContainer_Over
        {
            get
            {
                object obj2 = this.ViewState["TopContainer_Over"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlITCO";
            }
            set
            {
                this.ViewState["TopContainer_Over"] = value;
            }
        }

        [Bindable(true), DefaultValue("ob_iDdlTR"), Description("CSS Class for the Right Side of the Top Container"), Category("CSS Settings")]
        public virtual string TopContainer_RightSide
        {
            get
            {
                object obj2 = this.ViewState["TopContainer_RightSide"];
                if (obj2 != null)
                {
                    return obj2.ToString();
                }
                return "ob_iDdlTR";
            }
            set
            {
                this.ViewState["TopContainer_RightSide"] = value;
            }
        }
    }
}

